<!DOCTYPE html>
<html>
<head>
    <title></title>
    <#include "/header.html">
        </head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div class="form-group col-sm-2">
                <input type="text" class="form-control" v-model="q.subCode" @keyup.enter="query" placeholder="仓库代码">
            </div>
            <a class="btn btn-default" @click="query">查询</a>

            <#if shiro.hasPermission("sys:tblsubinventory:save")>
                <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
            </#if>
            <#if shiro.hasPermission("sys:tblsubinventory:update")>
                <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
            </#if>
            <#if shiro.hasPermission("sys:tblsubinventory:delete")>
                <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
            </#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">字库存</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="tblSubinventory.subCode" placeholder="仓库代码"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">子库存名称</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="tblSubinventory.subName" placeholder="子库存名称"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">描述</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="tblSubinventory.subDesc" placeholder="描述"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">学校</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="tblSubinventory.schoolId" placeholder="学校ID"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">地址</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="tblSubinventory.subAddresss" placeholder="地址"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">是否库存</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="tblSubinventory.invFlag"
                           placeholder="是否库存标记 Y表示 库存 N 表示无库存"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">是否总仓-失效</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="tblSubinventory.headerFlag"
                           placeholder="是否总部仓库标记 Y表示 总部 N 表示明细"/>
                </div>
            </div>
            <div class="form-group" style="display:none">
                <div class="col-sm-2 control-label"></div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="tblSubinventory.attribute1" placeholder=""/>
                </div>
            </div>
            <div class="form-group" style="display:none">
                <div class="col-sm-2 control-label"></div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="tblSubinventory.attribute2" placeholder=""/>
                </div>
            </div>
            <div class="form-group" style="display:none">
                <div class="col-sm-2 control-label"></div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="tblSubinventory.attribute3" placeholder=""/>
                </div>
            </div>
            <div class="form-group" style="display:none">
                <div class="col-sm-2 control-label"></div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="tblSubinventory.attribute4" placeholder=""/>
                </div>
            </div>
            <div class="form-group" style="display:none">
                <div class="col-sm-2 control-label"></div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="tblSubinventory.attribute5" placeholder=""/>
                </div>
            </div>
            <div class="form-group" style="display:none">
                <div class="col-sm-2 control-label">公司ID</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="tblSubinventory.companyId" placeholder="公司ID"/>
                </div>
            </div>
            <div class="form-group" style="display:none">
                <div class="col-sm-2 control-label"></div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="tblSubinventory.createTime" placeholder=""/>
                </div>
            </div>
            <div class="form-group" style="display:none">
                <div class="col-sm-2 control-label"></div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="tblSubinventory.createBy" placeholder=""/>
                </div>
            </div>
            <div class="form-group" style="display:none">
                <div class="col-sm-2 control-label"></div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="tblSubinventory.updateTime" placeholder=""/>
                </div>
            </div>
            <div class="form-group" style="display:none">
                <div class="col-sm-2 control-label"></div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="tblSubinventory.updateBy" placeholder=""/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/tblsubinventory.js?_${.now?long}"></script>
</body>
</html>